package com.nq.activaity.controller;


import com.nq.activaity.service.IStIntegralTaskService;
import com.nq.common.ServerResponse;
import com.nq.service.LotteryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping({"/user/task/"})
@Slf4j
public class TaskController {


    @Autowired
    private IStIntegralTaskService stIntegralTaskService;


    /**
     * 任务列表接口
     * @param httpServletRequest
     * @return
     */
    @RequestMapping(value = {"list.do"}, method = {RequestMethod.POST})
    @ResponseBody
    public ServerResponse taskList(HttpServletRequest httpServletRequest) {
        return this.stIntegralTaskService.taskList(httpServletRequest);
    }


}
